home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 24 / CU Amiga Magazine's Super CD-ROM 24 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-07].iso / CUCD / Programming / BlitzList / BlitzListFiles / ChunkyLib / ChunkyBlitz.doc next >
Encoding:
Text File  |  1998-04-03  |  1.5 KB  |  51 lines

  1. ****************************************
  2.  
  3.      New Chunky Blit Library V1.00
  4.  
  5. ****************************************
  6.  
  7. Story : A Blitzers, James, has put on the
  8. Blitz list an ASM code to 'Blit' chunky
  9. shape onto a chunky buffer. I've take
  10. the code and I've decided to create a
  11. library with it. But also to try to
  12. optimize it to the max. So it's about
  13. 80 % faster than the original one and
  14. I've coded 2 other commands which operate
  15. ver very fast but has some limits.
  16. Just take a look...
  17.  
  18.  
  19. BlitzLibs Number : 23
  20.  
  21.  
  22. NCpuBlit ShapeAddr, ChunkyBufAddr, ShapeWidth, ShapeHeight, BitmapWidth
  23.  
  24.     This one copy a Chunky Shape on the Chunky buffer. It has the color
  25. 0 for transparent color. It's reasonnably fast.
  26.  
  27.  
  28. NCpuBlock2 ShapeAddr, ChunkyBufAddr, ShapeWidth, ShapeHeight, BitmapWidth
  29.  
  30.     This one blit one shape with width multiple of 2. It's 2,5 times
  31. faster than the NCpuBlit command so if you need more speed, use this one.
  32.  
  33.  
  34. NCpuBlock4 ShapeAddr, ChunkyBufAddr, ShapeWidth, ShapeHeight, BitmapWidth
  35.  
  36.     This one is an Rocket. It's about 5 times faster than the NCpuBlit command
  37. but it need a width multiple of 4. Else there no other limitations.
  38.  
  39.  
  40.  
  41. Global Note : NONE of these commands are 'clipped' so be sure than you blit your
  42. command INSIDE the chunky buffer or you will have a BIG crash ;-).
  43.  
  44. Final Words: I launch a challenge to all Blitz 2 coders : Try to do even faster
  45. Chunky Blit routine. I don't think this is possible so prove this is ! I like
  46. competition ;-)
  47.  
  48.     Hope you will like it !
  49.  
  50.             Fred.   -> AlphaSOUND <-
  51.